﻿/// <reference path="~/Scripts/Library/jquery-1.9.1.min.js" />

var postbackController = "EnterpriseManagement"; 

function ConfigurationItem_Validate() {

    var isValid = true;

    var lastResponseMessageLabel = $("#LastResponseMessageLabel");


    switch ($("#SecurityAuthority_SecurityAuthorityType").val()) {

        case "0": // VALIDATE WINDOWS INTEGRATED 

            if ($("#SecurityAuthority_Domain").val() == "") {

                lastResponseMessageLabel.html("The Domain must not be empty.");

                lastResponseMessageLabel.parent().addClass("ui-state-error");

                $("#SecurityAuthority_Domain").closest("tr").children().first().addClass("ui-state-error");

                isValid = false;

            }

            break;

    }


    return isValid;

}

